#include "ThreadSearchEvent.h"

DEFINE_EVENT_TYPE( wxEVT_THREAD_SEARCH )
DEFINE_EVENT_TYPE( wxEVT_THREAD_SEARCH_ERROR )
IMPLEMENT_DYNAMIC_CLASS( ThreadSearchEvent, wxCommandEvent )

ThreadSearchEvent::ThreadSearchEvent( wxEventType commandType, int id )
  : wxCommandEvent( commandType, id ) {
}

ThreadSearchEvent::ThreadSearchEvent( const ThreadSearchEvent& Event )
  : wxCommandEvent( Event ) {
  SetString( GetString().c_str() );
  int count = Event.m_LineTextArray.GetCount();
  for( int i = 0; i < count; ++i ) {
    m_LineTextArray.Add( Event.m_LineTextArray[i].c_str() );
  }
}

ThreadSearchEvent::~ThreadSearchEvent() { }
